<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
	</head>
	<body>
		
		<div id="app">
			<div v-if="user.name != null">欢迎:{{user.name}}登录!</div>
			<div v-if="user.name == null">点击进行登录!</div>
		</div>
		
		
		<script>
			
			var vue= new Vue({
				el:"#app",
				data:{
					user:{name:null}
				}
			});
			
		</script>
		
	</body>
</html>
